package com.shop.service;

import com.shop.pojo.DtsUser;
import com.shop.pojo.DtsUserAccount;

import java.util.Map;

/**
 * @ClassName DtsUserService
 * @Author xiao宋
 * @Date 20:54  2022/10/13
 * @Version 1.0
 * @Description TODO
 */
public interface DtsUserService {
    /**
     * 获取用户数量
     * @return
     */
    long getTotal();

    /**
     * 显示用户列表处的分页
     * @param page
     * @param limit
     * @param sort
     * @param order
     * @param username
     * @param mobile
     * @return
     */
    Map<String, Object> findByPage(Integer page, Integer limit, String sort, String order, String username, String mobile);

    /**
     * 代理审批。并设置佣金额度
     * @param account
     * @return
     */
    boolean approveAgency(DtsUserAccount account);

    Integer findByName(String username);

    Map<String, Object> getUser();

    Map<String, Object> getGoods();

    Map<String, Object> getOrderMsg();
}
